package com.zy.zlog

import android.util.Log

//功能-添加统一前缀
object ZLog {

    private const val PRE_TAG = "ZYDebug"

    @JvmStatic
    fun d(tag: String, v: Any) {
        Log.d(PRE_TAG, "$tag $v")
    }

    @JvmStatic
    fun i(tag: String?, v: Any) {
        Log.i(tag, "$PRE_TAG $v")
    }

    @JvmStatic
    fun e(tag: String?, v: Any) {
        Log.e(tag, "$PRE_TAG $v")
    }

    @JvmStatic
    fun getStackTraceString(tr: Throwable?): String {
        return Log.getStackTraceString(tr)
    }
}